package com.yaoxuguang.concurrence.synchronizedpackage.methodInnerVariable;

/**
 * @author yaoxuguang
 * @Title: yao-interview
 * @Package com.yaoxuguang.concurrence.synchronizedpackage.methodInnerVariable
 * @Description: 验证方法内的私有变量不存在非线程安全的问题
 * @date 2018年12月18日10:00
 */
public class Run {
    public static void main(String[] args) {
        HasSelfPraviteNum hasSelfPraviteNum = new HasSelfPraviteNum();
        ThreadA a = new ThreadA(hasSelfPraviteNum);
        a.start();
        ThreadB b = new ThreadB(hasSelfPraviteNum);
        b.start();
    }
}
